private Vertex copy(Vertex v) {
Vertex to = sub.addVertex(v.getId());
ElementHelper.copyProperties(v, to);
return to;
}
}
private Vertex copy(Vertex v) {
Vertex to = sub.getVertex(v.getId());
if (to == null) {
to = sub.addVertex(v.getId());
ElementHelper.copyProperties(v, to);
}
return to;
}